﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mogre;

namespace WastedMechanics.CharState
{
    public class CharStateRunPistolAim : CharStateRunPistol
    {
        public CharStateRunPistolAim(Character chr)
            : base(chr)
        {
            AnimationName = "RunPistolAim";
        }

        public override void Enter()
        {
            base.Enter();
            Character.IsAiming = true;
        }

        public override void Exit()
        {
            Character.IsAiming = false;
            base.Exit();
        }

        public override void StopAimingOrder()
        {
            Character.IsAiming = false;
            Character.SwitchState(new CharStateRunPistol(Character));
        }

        public override void RecoilOrder()
        {
            Character.SwitchState(new CharStateRunPistolRecoil(Character));
        }

        public override CharState GetIdleState()
        {
            return new CharStateIdlePistolAim(Character);
        }
    }
}
